
#pragma once

#include <Ogre.h>

class BaseGameManager;

class KeysState
{
	friend BaseGameManager;

	bool mKeyBuf[256];
 
	KeysState()
	{
		for(unsigned i = 0; i < sizeof(mKeyBuf); ++i)
			mKeyBuf[i] = false;
	}

	void SetKey(unsigned char key, bool down) { mKeyBuf[key] = down; }

public:

	bool IsDown(unsigned char key) const { assert(key < 256); return mKeyBuf[key]; }

};